using namespace std;
#include <vector>

class Solution
{
public:
    int singleNumber(vector<int>& nums)
    {
        int ret = 0;
        for(auto e : nums)
        {
            ret ^= e;
        }
        return ret;
    }
};
